ARect

Rectangular window area.

This is the NDK equivalent of the android.graphics.Rect class in Java. It is used with {@link ANativeActivityCallbacks::onContentRectChanged} event callback and the ANativeWindow_lock() function.

In a valid ARect, left <= right and top <= bottom. ARect with left=0, top=10, right=1, bottom=11 contains only one pixel at x=0, y=10.

extern (C) nothrow @nogc
struct ARect {}

Members

Variables

bottom
int bottom;

Maximum Y coordinate of the rectangle.

left
int left;

Minimum X coordinate of the rectangle.

right
int right;

Maximum X coordinate of the rectangle.

top
int top;

Minimum Y coordinate of the rectangle.

Meta